package com.example.lib_router.provider

import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.base.RouterPath
import com.tencent.mmkv.MMKV

@Route(path = RouterPath.PATH_TOKEN_PROVIDER)
class LoginTokenService: ITokenProvider {

    private lateinit var mContext: Context

    override fun init(context: Context?) {
        if (context != null) {
            mContext = context
        }
    }

    override fun getLoginToken(): String {
        var token = MMKV.defaultMMKV().decodeString("token", "")
        return token ?: "token@123"
    }


}